<div class="characters view">
<h2><?php  echo __('Character');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($character['Character']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Player'); ?></dt>
		<dd>
			<?php echo $this->Html->link($character['Player']['id'], array('controller' => 'players', 'action' => 'view', $character['Player']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Chin'); ?></dt>
		<dd>
			<?php echo h($character['Character']['chin']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Xp'); ?></dt>
		<dd>
			<?php echo h($character['Character']['xp']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($character['Character']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Faction'); ?></dt>
		<dd>
			<?php echo h($character['Character']['faction']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Element'); ?></dt>
		<dd>
			<?php echo h($character['Character']['element']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Faith'); ?></dt>
		<dd>
			<?php echo h($character['Character']['faith']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Group'); ?></dt>
		<dd>
			<?php echo h($character['Character']['group']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php echo h($character['Character']['status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Comments'); ?></dt>
		<dd>
			<?php echo h($character['Character']['comments']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Deleted'); ?></dt>
		<dd>
			<?php echo h($character['Character']['deleted']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="related">
	<h3><?php echo __('Related Log Lines');?></h3>
	<?php if (!empty($character['LogLine'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Character Id'); ?></th>
		<th><?php echo __('Item Id'); ?></th>
		<th><?php echo __('Power Id'); ?></th>
		<th><?php echo __('Log Text'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Created By'); ?></th>
		<th><?php echo __('Deleted'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($character['LogLine'] as $logLine): ?>
		<tr>
			<td><?php echo $logLine['id'];?></td>
			<td><?php echo $logLine['character_id'];?></td>
			<td><?php echo $logLine['item_id'];?></td>
			<td><?php echo $logLine['power_id'];?></td>
			<td><?php echo $logLine['log_text'];?></td>
			<td><?php echo $logLine['created'];?></td>
			<td><?php echo $logLine['created_by'];?></td>
			<td><?php echo $logLine['deleted'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'log_lines', 'action' => 'view', $logLine['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'log_lines', 'action' => 'edit', $logLine['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'log_lines', 'action' => 'delete', $logLine['id']), null, __('Are you sure you want to delete # %s?', $logLine['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Log Line'), array('controller' => 'log_lines', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Events');?></h3>
	<?php if (!empty($character['Event'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Start Date'); ?></th>
		<th><?php echo __('End Date'); ?></th>
		<th><?php echo __('Checkout'); ?></th>
		<th><?php echo __('Description'); ?></th>
		<th><?php echo __('Deleted'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($character['Event'] as $event): ?>
		<tr>
			<td><?php echo $event['id'];?></td>
			<td><?php echo $event['name'];?></td>
			<td><?php echo $event['start_date'];?></td>
			<td><?php echo $event['end_date'];?></td>
			<td><?php echo $event['checkout'];?></td>
			<td><?php echo $event['description'];?></td>
			<td><?php echo $event['deleted'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'events', 'action' => 'view', $event['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'events', 'action' => 'edit', $event['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'events', 'action' => 'delete', $event['id']), null, __('Are you sure you want to delete # %s?', $event['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Event'), array('controller' => 'events', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Items');?></h3>
	<?php if (!empty($character['Item'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Status'); ?></th>
		<th><?php echo __('Expiry'); ?></th>
		<th><?php echo __('Description'); ?></th>
		<th><?php echo __('Player Text'); ?></th>
		<th><?php echo __('Cs Text'); ?></th>
		<th><?php echo __('Deleted'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($character['Item'] as $item): ?>
		<tr>
			<td><?php echo $item['id'];?></td>
			<td><?php echo $item['name'];?></td>
			<td><?php echo $item['status'];?></td>
			<td><?php echo $item['expiry'];?></td>
			<td><?php echo $item['description'];?></td>
			<td><?php echo $item['player_text'];?></td>
			<td><?php echo $item['cs_text'];?></td>
			<td><?php echo $item['deleted'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'items', 'action' => 'view', $item['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'items', 'action' => 'edit', $item['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'items', 'action' => 'delete', $item['id']), null, __('Are you sure you want to delete # %s?', $item['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Item'), array('controller' => 'items', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Powers');?></h3>
	<?php if (!empty($character['Power'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Type'); ?></th>
		<th><?php echo __('Group Id'); ?></th>
		<th><?php echo __('Expiry'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Player Text'); ?></th>
		<th><?php echo __('Cs Text'); ?></th>
		<th><?php echo __('Deleted'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($character['Power'] as $power): ?>
		<tr>
			<td><?php echo $power['id'];?></td>
			<td><?php echo $power['type'];?></td>
			<td><?php echo $power['group_id'];?></td>
			<td><?php echo $power['expiry'];?></td>
			<td><?php echo $power['name'];?></td>
			<td><?php echo $power['player_text'];?></td>
			<td><?php echo $power['cs_text'];?></td>
			<td><?php echo $power['deleted'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'powers', 'action' => 'view', $power['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'powers', 'action' => 'edit', $power['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'powers', 'action' => 'delete', $power['id']), null, __('Are you sure you want to delete # %s?', $power['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Power'), array('controller' => 'powers', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Skills');?></h3>
	<?php if (!empty($character['Skill'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Cost'); ?></th>
		<th><?php echo __('Weight'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Print Name'); ?></th>
		<th><?php echo __('Description'); ?></th>
		<th><?php echo __('Deleted'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($character['Skill'] as $skill): ?>
		<tr>
			<td><?php echo $skill['id'];?></td>
			<td><?php echo $skill['cost'];?></td>
			<td><?php echo $skill['weight'];?></td>
			<td><?php echo $skill['name'];?></td>
			<td><?php echo $skill['print_name'];?></td>
			<td><?php echo $skill['description'];?></td>
			<td><?php echo $skill['deleted'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'skills', 'action' => 'view', $skill['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'skills', 'action' => 'edit', $skill['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'skills', 'action' => 'delete', $skill['id']), null, __('Are you sure you want to delete # %s?', $skill['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Skill'), array('controller' => 'skills', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
